package com.ge.modules.entity;

import com.ge.modules.api.apiDTO.TbUserConcernDto;

import java.io.Serializable;
import java.util.Date;



/**
 * 用户关注表
 * 
 * @author lanyonglin
 * @email www.baidu.com
 * @date 2018-07-17 15:12:57
 */
public class TbUserConcernEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//
	private Integer id;
	//关注用户id
	private Integer userId;
	//被关注用户id
	private Integer byUserId;
	//创建时间
	private Date createTime;
	//关注类型 1关注用户 2关注技师 3关注店铺
	private Integer userType;

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：关注用户id
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	/**
	 * 获取：关注用户id
	 */
	public Integer getUserId() {
		return userId;
	}
	/**
	 * 设置：被关注用户id
	 */
	public void setByUserId(Integer byUserId) {
		this.byUserId = byUserId;
	}
	/**
	 * 获取：被关注用户id
	 */
	public Integer getByUserId() {
		return byUserId;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：关注类型 1关注用户 2关注技师 3关注店铺
	 */
	public void setUserType(Integer userType) {
		this.userType = userType;
	}
	/**
	 * 获取：关注类型 1关注用户 2关注技师 3关注店铺
	 */
	public Integer getUserType() {
		return userType;
	}

	public TbUserConcernDto toDto(){
		TbUserConcernDto tbUserConcernDto=new TbUserConcernDto();
		tbUserConcernDto.setId(this.getId());
		tbUserConcernDto.setUserId(this.getUserId());
		tbUserConcernDto.setByUserId(this.getByUserId());
		tbUserConcernDto.setCreateTime(this.getCreateTime());
		tbUserConcernDto.setUserType(this.getUserType());
		return tbUserConcernDto;
	}
}
